package com.pattern.singleton.register;

/**
 * Description 注册式单例-枚举
 *
 * @author hubiao
 * @since 2020-08-20 21:30
 */
public enum EnumSingleton {
    INSTANCE( "1", "初始化" );

    private String key;
    private String value;

    private EnumSingleton(String key, String value) {
        this.key = key;
        this.value = value;
    }

    private static EnumSingleton getInstance() {
        return INSTANCE;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
